<?php
/**
 *
 * UCConfFeed class file
 *
 * @category   UC
 * @author     刘海涛 <liuhaitao01@snda.com>
 * @copyright  SDO Group
 * @version    Release: 1.0.0
 * @link       
 * @license    http://www.sdo.com
 */

class UCConfFeed
{
	const FEED_UC_FLAG	= 1002;	
	const FEED_USERHOME_NUM	= 30;		//主页展示动态最大条数
	const FEED_PERPAGE_NUM = 30;		//分页每页显示条数
	
	const FEED_FLAG_SOMEONE	= 1;		//某人自己的动态
	const FEED_FLAG_FRIENDS	= 2;		//某人好友的动态
	const FEED_FLAG_ALL		= 3;		//某人自己和好友的动态

	const FEED_TYPE_AVATAR			= 1002001;		//修改基本资料动态
	const FEED_TYPE_POST_TWITTER	= 1002005;		//记录动态
	const FEED_TYPE_CONVEY_TWITTER	= 1002003;		//转记录动态
	const FEED_TYPE_IMG_TWITTER	    = 1002007;		//图片记录动态
	const FEED_TYPE_VIDEO_TWITTER	= 1002009;		//视频记录动态
	const FEED_TYPE_MEDAL			= 1002011;		//勋章动态
	const FEED_TYPE_FRIEND			= 1001001;		//好友动态
	const FEED_TYPE_APP				= 1001003;		//开通应用动态

	const FEED_TYPE_APP_SEND		= 1002017;		// APP 自定义动态
	const FEED_TYPE_TEMPLATE		= 1001998;		// 模板动态

	const FEED_TEMPLATE_WEBGAME = 90000000937;
	const FEED_TEMPLATE_2144	= 90000000938;
	const FEED_TEMPLATE_GENERAL	= 90000000947;

	const FEED_ERROR_PARAM		= -1;
	const FEED_ERROR_DB			= -2;
	const FEED_ERROR_NOEXIST	= -3;
	const FEED_ERROR_INTERFACE	= -4;
	
	//错误返回信息
	static public $ar_feed_error = array(
											self::FEED_ERROR_PARAM		=> '参数传递错误',
											self::FEED_ERROR_DB			=> '数据库操作错误',
											self::FEED_ERROR_NOEXIST	=> '动态类型不属于通用类型',
											self::FEED_ERROR_INTERFACE	=> '动态接口错误',
										);

	static public $ar_set_feed = array(
										2	=> array('id'=>2,'title'=>'更新头像'),
										3	=> array('id'=>3,'title'=>'获取勋章'),
										6	=> array('id'=>6,'title'=>'添加好友')
									);

	static public $ar_feed_general_type = array();
}
?>